import 'package:fish_redux/fish_redux.dart';
import 'model/order_view_model.dart';
import '../../app_files.dart';

class OrderViewState implements Cloneable<OrderViewState> {
  List<OrderConfigModel> items;
  CheckListItemModel userInfo;

  UserGasInfo gasInfo = UserGasInfo();

  @override
  OrderViewState clone() {
    return OrderViewState()
      ..userInfo = userInfo
      ..items = items
      ..gasInfo = gasInfo;
  }
}

OrderViewState initState(Map<String, dynamic> args) {
  OrderViewState state = OrderViewState();
  state.userInfo = args['info'];
//  state.nameTextController.text = state.userInfo.userName;
//  state.addressTextController.text = state.userInfo.userAddress;
//  state.phoneTextController.text = state.userInfo.phone;
  return state;
}
